package com.zy;

import com.zy.bean.CatBean;
import com.zy.bean.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-29 周二 14:56
 * @since 17
 */
public class App {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserBean bean = ac.getBean(UserBean.class);
        System.out.println(bean.getCatBean());

    }
}
